package top.zlcode.common.security.exception;

import lombok.Getter;
import top.zlcode.common.core.enums.ResultCode;

@Getter
public class ServiceException extends RuntimeException {

    private ResultCode resultCode;

    public ServiceException(ResultCode resultCode) {
        super(resultCode.getMsg());
        this.resultCode = resultCode;
    }
}
